This resource address deletes the named database from the cluster. The database can be identified either by id or name.
Upon success, a status code of 204 (No Content) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-user
rolehttp://marklogic.com/xdmp/privileges/manage
manage
role plus one of the following granular privileges:
http://marklogic.com/xdmp/privileges/admin/database/database-ID
http://marklogic.com/xdmp/privileges/admin/database/activity/database-ID
where activity is one of the following:
curl -X DELETE --anyauth -u admin:admin --header "Content-Type:application/json" \ http://localhost:8002/manage/v2/databases/MyNewDatabase ==> Deletes the "MyNewDatabase" database.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.